<!- Copyright (c)  Microsoft Corporation, All Rights Reserved ->
<html>
<!-------------------------------------------------------------------------
 
	This sample illustrates the use of the WMI Scripting API within
   an HTML page, using JScript.  It displays a Win32_service name
   using the synchronous API.

   The WMI Scripting objects are instantiated using their CLSID's
   and the HTML <OBJECT> tag.

---------------------------------------------------------------------------->

<head>
<title>WMI Scripting HTML Sample - Service Display 1 (JScript synchronous version)</title>
<script FOR="document" EVENT="onclick()" LANGUAGE="JScript">
		var service = locator.ConnectServer();
		var process = service.Get('Win32_Service.Name="Winmgmt"');
		document.all.info.innerText = process.DisplayName;
</script>
</head>

<body>

<p>Click in this window for the name of the WMI service: <span ID="info">unknown </span>. 
<object ID="locator" CLASSID="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6">
</object>
</p>
</body>
</html>
